package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.DataDictDAO;
import top.zywork.dos.DataDictDO;
import top.zywork.dto.DataDictDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.DataDictService;

import javax.annotation.PostConstruct;

/**
 * DataDictServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-11-29<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Service(value = "dataDictService")
public class DataDictServiceImpl extends AbstractBaseService implements DataDictService {

    private DataDictDAO dataDictDAO;

    @Autowired
    public void setDataDictDAO(DataDictDAO dataDictDAO) {
        super.setBaseDAO(dataDictDAO);
        this.dataDictDAO = dataDictDAO;
    }

    @PostConstruct
    public void init() {
        super.init(DataDictDO.class, DataDictDTO.class);
    }
}
